#!/usr/bin/env bash
function show(){
prompt_choose_function \
"# bent show [command] " \
"run show versions" "versions" "Show all versions of your project" \
"run show url" "url" "Show the web url of your project" \
"run show hosts" "hosts" "Show all the hosts (remotes) of your project" \
;
}
function show_help(){
run show
}
function show_versions(){
is_project_dir || return;
## @TODO check if this is a git repo & give a nice error if not
## @TODO make nice output for git branch -a
git branch -a
}
function show_url(){
is_project_dir || return;
header "$(internet_url)"
msg " [ctrl+click] to open"
msg " Higlight -> [ctrl+shift+c] to copy"
}
function show_hosts(){
is_project_dir || return;
git remote -v
}